<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>接口记录与分析工具</title>

    <!-- 引入 Vue 和 Element UI 的 CDN -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.min.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-ui@2.15.5/lib/theme-chalk/index.css">
    <script src="https://cdn.jsdelivr.net/npm/element-ui@2.15.5/lib/index.js"></script>

    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            text-align: center;
            background-color: #f7f7f7;
        }

        #app {
            margin-top: 100px;
        }

        .btn-container {
            display: flex;
            justify-content: center;
            gap: 20px;
        }
    </style>
</head>
<body>

<div id="app">
    <el-container>
        <el-header style="text-align: center; background-color: #409EFF; color: white;">
            <h2>路径跳转</h2>
        </el-header>

        <el-main style="margin-top: 50px;">
            <!-- 按钮容器 -->
            <div class="btn-container">
                <el-button type="primary" @click="goToPage(1)">跳转到Entity层记录</el-button>
                <el-button type="success" @click="goToPage(2)">跳转到Controller层记录</el-button>
                <el-button type="warning" @click="goToPage(3)">跳转到Service层记录</el-button>
                <el-button type="danger" @click="goToPage(4)">跳转到Dao层记录</el-button>
            </div>
        </el-main>
    </el-container>
</div>

<script>
    new Vue({
        el: '#app',
        methods: {
            goToPage(pageNumber) {
                if(pageNumber === 1)
                window.location.href = `/EntityInfo.html`;
                else if(pageNumber === 2)
                    window.location.href = `/ControllerInfo.html`;
                else if(pageNumber === 3)
                    window.location.href = `/ServiceInfo.html`;
                else if(pageNumber === 4)
                    window.location.href = `/DaoInfo.html`;
            }
        }
    });
</script>

</body>
</html>
